const app = getApp()
const { $Toast } = require('../../iview/base/index');
Page({
  data: {
    business_desc:'<p><img src="http://duiluopen.duilusx.com/2019/12/25/44654697be193f52a83bdbfa7d82ae64.jpg" style="width: 100%;"></p>',
    color_bg: "bg-grey",
    color_line: "line-grey"
  },
  /** 点赞 */
  zan(){
    console.log('点赞了')

  },
  /** 复制微信号 */
  copy_chat_no(e){
    wx.setClipboardData({
      data: e.currentTarget.dataset.chatNo,
      success: function (res) {
        //wx.hideToast();
        // $Toast({
        //   content: '复制成功 '+ e.currentTarget.dataset.chatNo,
        //   type: 'success'
        // });  
      }
    })
  },
  /** 拨打电话 */
  call_phone(e){
    wx.makePhoneCall({
      phoneNumber: e.currentTarget.dataset.phone
    })
  },
  tag_like(){
    this.setData({
      color_line: "line-red",
      color_bg:"bg-red"
    })
  }
 
})
